import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
// import global from "@/js/global";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import locale from "element-ui/lib/locale/lang/zh-CN"; // lang i18n
import "@/js/dialogDrag";
import "@/js/dialogDragL";
import "@/js/dialogDragL2";

// import ECharts from 'vue-echarts';
// import 'echarts/lib/chart/bar';
// import 'echarts/lib/component/tooltip';

// Vue.component('v-chart', ECharts);
// Vue.prototype.$echarts = ECharts;
// Vue.config.productionTip = false
// Vue.use(global);

Vue.config.productionTip = false;

// 设置全局变量
Vue.prototype.$globalVariable = '172.17.16.51:8080';//视频流
Vue.prototype.$demo = "http://" + window.location.hostname + ":9001";//后端地址
Vue.prototype.$demoFile = 'http://' + window.location.hostname + ':3000/images/';//后端文件服务地址

Vue.use(ElementUI, {
    size: "mini",
    locale,
});
new Vue({
    router,
    store,
    render: (h) => h(App),
}).$mount("#app");
